package com.zxl.register.server.command;

import com.zxl.register.base.Event;
import com.zxl.register.base.Result;
import com.zxl.register.server.core.ServiceRegistCore;
import lombok.Data;

@Data
public class RegiterHandler extends CommandHandler {


    @Override
    public String getKey() {
        this.key="register";
        return key;
    }

    @Override
    public Result handle(Event event) {
        return ServiceRegistCore.register(event.getInstance());
    }
}
